package com.zzxy.spring5.factory;

import com.mysql.cj.x.protobuf.MysqlxExpr;
import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

public class MyBeanPostProcesstor implements BeanPostProcessor {

    @Override
    public Object postProcessBeforeInitialization(Object obj, String s) throws BeansException {
        System.out.println("5.before post processor :" + s);
        return obj;
    }

    @Override
    public Object postProcessAfterInitialization(Object o, String s) throws BeansException {
        System.out.println("8.after post processor :" + s);
        return o;
    }

}
